package com.hjm.project.record.activityRecord.domain;

import com.hjm.framework.web.domain.BaseEntity;
import com.hjm.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 活动变更修改记录对象 activity_update_record
 * 
 * @author maker-platform
 * @date 2022-10-31
 */
@Data
public class ActivityUpdateRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 批次号 */
    @Excel(name = "批次号")
    private Long batch;

    /** 终端编号 */
    @Excel(name = "终端编号")
    private String sn;

    /** 终端型号 */
    @Excel(name = "终端型号")
    private String model;

    /** 原活动编号 */
    @Excel(name = "原活动编号")
    private String beforeActivity;

    /** 原活动名称 */
    @Excel(name = "原活动名称")
    private String beforeAgent;

    /** 新活动编号 */
    @Excel(name = "新活动编号")
    private String laterActivity;

    /** 新活动名称 */
    @Excel(name = "新活动名称")
    private String laterAgent;

    /** 变更状态 */
    @Excel(name = "变更状态",readConverterExp = "0=成功,1=失败")
    private Integer updateType;

    /** 变更人 */
//    @Excel(name = "变更人")
    private String updateMan;

    /** 变更时间 */
    @Excel(name = "变更时间")
    private String updateDate;

    /** 终端类型 */
    private Long posType;

    /** 备注 */
    private String note;

    /** 数量 */
    private String count;

    /** 失败原因 */
    @Excel(name = "失败原因")
    private String errorNote;

    /** 所属代理 */
    private String agent;










    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("batch", getBatch())
            .append("sn", getSn())
            .append("model", getModel())
            .append("beforeActivity", getBeforeActivity())
            .append("laterActivity", getLaterActivity())
            .append("updateType", getUpdateType())
            .append("updateMan", getUpdateMan())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
